<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            border: 1px solid #000;
            display: inline-block;
            height: 40px;
            line-height: 40px;
        }
        .box1{
            margin-right: 10px;
            margin-top: 20px;
        }
        .box2{
            margin-left: 10px;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <div class="box">
    <div class="box1">123</div>
    <div class="box2">456</div>
    </div>
</body>
</html>